from PyQt5.Qt import *
from login_panel import LoginPanel
from query_panel import QueryPanel



    

if __name__ == '__main__':
    import sys

    app = QApplication(sys.argv)
    login_panel = LoginPanel()
    query_panel = QueryPanel()
    def successLoginSlot(content):
        # print(content)
        login_panel.hide()

        query_panel.setWindowTitle(content)
        query_panel.show()

    login_panel.successLogin.connect(successLoginSlot)
    login_panel.show()
    sys.exit(app.exec_())

